<?php
   //方太活动抽奖系统
   session_start();
   //header("Content-type=text/html;charset=UTF-8");
   include 'UserAction.php';
   
   $user=new UserAction();

   //检查action有没有存在
   isset($_GET['action'])?$action=$_GET['action']:$action="index";
   
   switch($action) {
        //默认首页
        case "index":		    
            $user->index();
			break;
        //用户提交中奖号码
		case "get":
		    $user->get();
			break;
			
		//默认跳转到二维码
		default :
            $user->index();
			break;		    

    }

?>